package org.train.builders;

import java.util.ArrayList;

import org.train.model.Car;
import org.train.model.Train;
import org.train.model.impl.MetroCar;
import org.train.model.impl.TrainImpl;

public class TrainBuilder {
	public static Train buildMetroTrain() {
		ArrayList<Car> cars = new ArrayList<Car>(5);
		MetroCar.Builder builder = new MetroCar.Builder();
		MetroCar car = builder.maxSpeed(90).maxCapacity(322).power(750)
				.weight(33).build();
		cars.add(car);
		cars.add(car.clone());
		car = builder.maxCapacity(330).power(456).build();
		//TODO
		return new TrainImpl(cars);
	}
}
